/*
 * @Author: byron
 * @Date: 2021-10-25 09:15:59
 * @LastEditTime: 2022-02-17 01:35:40
 */
/// 基础路由
export default [{
        path: '/',
        redirect: '/login',
        hidden: true,
    },
    {
        path: '/login',
        component: () => import('@/view/account/login.vue'),
        meta: {
            title: '登录',
        },
    },
    {
        path: '/dashboard',
        component: () => import('@/layout/index.vue'),

        children: [{
                path: '',
                redirect: '/dashboard/console',
            },
            {
                name: 'console',
                path: 'console',
                meta: {
                    title: '分析页',
                },
                component: () => import('@/view/dashboard/console.vue'),
            },
            {
                name: 'center',
                path: 'center',
                meta: {
                    title: '个人中心',
                },
                component: () => import('@/view/account/center.vue'),
            },

            {
                path: 'workspace',
                meta: {
                    title: '工作台',
                },
                component: () => import('@/view/dashboard/workspace.vue'),
            },
            {
                path: 'tagList',
                meta: {
                    title: '标签列表',
                },
                component: () => import('@/view/tag/tagList.vue'),
            },
            {
                path: 'cateList',
                meta: {
                    title: '标签列表',
                },
                component: () => import('@/view/category/categoryList.vue'),
            },
            {
                path: 'artList',
                meta: {
                    title: '文章列表',
                },
                component: () => import('@/view/article/artList.vue'),
            },
            {
                path: 'permission',
                meta: {
                    title: '当前权限',
                },
                component: () => import('@/view/system/permission.vue'),
            },
            {
                path: 'menu',
                meta: {
                    title: '菜单列表',
                },
                component: () => import('@/view/system/menuList.vue'),
            },
            {
                path: 'role',
                meta: {
                    title: '角色列表',
                },
                component: () => import('@/view/system/roleList.vue'),
            },
            {
                path: 'userList',
                meta: {
                    title: '用户列表',
                },
                component: () => import('@/view/permission/userList.vue'),
            },
            {
                path: 'permissionList',
                meta: {
                    title: '权限列表',
                },
                component: () => import('@/view/permission/permissionList.vue'),
            },
            {
                path: 'diary',
                meta: {
                    title: '日记列表',
                },
                component: () => import('@/view/diary/index.vue'),
            },
        ],
    },
]